package com.ks.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ks.entity.Indicator;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface IndicatorMapper extends BaseMapper<Indicator> {
    @Select("select * from indicator where id = #{id}")
    Indicator selectById2(@Param("id") Integer id);

    IPage<Indicator> pageIndicator(IPage page);

    @Select("select name from indicator")
    String[] getAllName();
}
